﻿
@{
    Layout = "";
}
<div class="w_excdetil_detail" style="margin:0px 0px 0px 0px;" ng-controller="SpecialTopicCtrl">
    <div  ng-bind-html="model.ActivityContent|to_trusted" id="detail"></div>
    <!-- 产品列表 -->
    @*<section class="list_m_mdv srp">
            <div class="tile_box prolist1" infinite-scroll='reddit.nextPage()' infinite-scroll-disabled='reddit.busy' infinite-scroll-distance='0'>
                <div ui-sref="shop.productdetail({sku:product.Sku,activityId:0})" class="tile_item" ng-repeat="product in reddit.items">
                    <div class="ti_img_wrap ">
                        <img ng-src="{{ImgHostUrl+product.ImgUrl}}" class="ti_img">
                    </div>
                    <div class="ti_info">
                        <p class="tii_title">{{product.Name}}</p>
                        <div class="tii_price"><i class="list_m_font">¥</i>{{product.Price}}<span class="tii_sold"><i>¥{{product.MarketPrice}}</i></span></div>
                    </div>
                </div>

            </div>
        </section>
        <div class="clear"></div>*@
    <!-- end产品列表 -->
</div>
<script type="text/javascript">
  

    App.controller('SpecialTopicCtrl', [
            '$scope', '$http', '$rootScope', 'Reddit', '$stateParams', '$state', '$filter',
        function ($scope, $http, $rootScope, Reddit, $stateParams, $state, $filter) {
            $scope.model = {};
            ////数据初始化
            //$scope.reddit = new Reddit("/Activity/SpecialTopicProduct", { Take: 8, Id: $stateParams.Id }, function (response) { });
            //console.log($scope.reddit);
            //$scope.reddit.nextPage();
            $http.post("/Activity/SpecialTopicProduct", { Id: $stateParams.Id }).then(function (response) {
                if (response.data.Result && response.data.Result != "") {
                    $scope.model = response.data.Result;
                }
            });



            var tt = function () {
                $rootScope.WxShare($rootScope.pageTitle(), '优品三悦', location.href, $rootScope.LogoUrl);
                //$("#detail").find("img").css("width", "");
                //$("#detail").find("img").css("height", "100%");
            }

            setTimeout(tt, 1000)
        }]);
</script>
